<result>
<?php
if ( isset ($_REQUEST["do"]) && $_REQUEST["do"] != "" )
	switch ( $_REQUEST["do"] ) {
		
		case "get_tables_list":
			print "<tables>";
			foreach ( $db->tables as $t ) {
				echo '<table name="{$t}"></table>';
			}
			print "</tables>";
			break;
		
		case "login":
			if ( file_exists( "./module/test/" . md5($_REQUEST["password"]) . ".xml")) {
				$_SESSION["ff"] = false;
				$_SESSION["ff"] = array();
				$_SESSION["ff"]["is_logged"] = "true";
				$_SESSION["ff"]["user_code"] = md5($_REQUEST["password"]);
				header ("Location: index.php");
			} else 
				$core->throw_error ($_REQUEST["do"]);
			break;
		
		case "reset_session":
			$_SESSION["FF"] = false;
			break;
		
		default: 
			print '<status>KO</status>';
			print '<description>Responder doesn\'t know this action</description>';
			break; 
		
	}
?>
</result>